package drg_group.wuhan_2022.ADRG;

import java.util.Arrays;
import java.util.HashSet;
import java.util.Set;

import drg_group.wuhan_2022.Base;
import drg_group.wuhan_2022.MedicalRecord;
import drg_group.wuhan_2022.DRG.MDCL_DRG;

public class LC1 {
    public static String group(MedicalRecord record){
        String[] adrg_zd={};
        String[] adrg_zd1={};
        String[] adrg_ss={"38.0603","38.0703","38.8608","38.8703","39.7901","55.0100x010","55.0101","55.0102","55.0103","55.0104","55.0105","55.0106","55.0107","55.0109","55.0110","55.0111","55.0200","55.0201","55.0300x005","55.0300x006","55.0300x007","55.0301","55.0302","55.1100x001","55.1100x002","55.1101","55.1102","55.1103","55.1104","55.1105","55.1106","55.1107","55.1108","55.1109","55.1200","55.1200x001","55.2101","55.2300x001","55.2302","55.2400","55.3100","55.3200x001","55.3301","55.3302","55.3400x001","55.3400x001","55.3501","55.3900x001","55.3900x003","55.3900x004","55.3901","55.3902","55.3903","55.8201","55.8202","55.8301","55.8400","55.8500","55.8501","55.8600x006","55.9100","55.9100x003","55.9200x002","55.9200x006","55.9200x007","55.9201","55.9202","55.9203","55.9204","55.9205","55.9206","55.9902","56.0x00x001","56.0x00x002","56.0x00x003","56.0x00x004","56.0x00x005","56.0x00x006","56.0x00x007","56.0x00x008","56.0x00x009","56.0x00x010","56.0x00x011","56.0x00x012","56.0x00x013","56.0x00x014","56.0x00x015","56.0x00x016","56.1x00x001","56.1x01","56.2x00x002","56.2x00x007","56.2x01","56.2x02","56.2x03","56.2x04","56.2x05","56.3200","56.3300x003","56.3400","56.4100","56.4100x008","56.4100x009","56.4100x011","56.4101","56.4102","56.4103","56.4104","56.4105","56.4106","56.4107","56.5102","56.5200x001","56.6100x001","56.6100x003","56.6100x004","56.6201","56.7400","56.7401","56.7402","56.7501","56.7900","56.8100","56.8200x002","56.8300","56.8400x001","56.8401","56.8500","56.8600","56.9100","56.9101","56.9200","56.9300","56.9400","56.9500","56.9500x001","56.9900","57.1700x002","57.9300x002","59.0201","59.0202","59.0203","59.0303","59.0901","59.0902","59.0903","59.0904","59.2101","59.3x00","59.4x01","59.4x02","59.4x03","59.4x04","59.4x05","59.8x00x001","59.8x00x007","59.8x05","59.9101","59.9201","70.5001","70.5002","70.5100","70.5101","70.5102","70.5400x001","70.5400x002","70.7700x004","70.7701","70.7703","70.9400x001","70.9400x002","70.9400x003","70.9500x001"};
        String[] adrg_ss1={};
        
        if (true && record.ssList!=null && record.ssList.length>0 && Base.contains(adrg_ss,record.ssList[0])){
            Base.groupMessages.putMessage(record.Index,"符合LC1入组条件，匹配规则：主手术匹配");
                
            if (MDCL_DRG.LC1A_group(record)){
                return "LC1A";
            }
    
            if (MDCL_DRG.LC15_group(record)){
                return "LC15";
            }

            return "LC1";
        }else{
            return "";
        }
    }
}

